[% PROCESS settings/header.html %]
  [% WRAPPER settingSection %]
  	[% WRAPPER setting title="PLUGIN_CDPLAYER_PAUSESTOP" desc="PLUGIN_CDPLAYER_PAUSESTOP_DESC" %]
	    <input type="checkbox" name="pref_pausestop" id="pausestop"
		[% IF prefs.pref_pausestop == 1%] checked="checked" [% END %] value="1"
	    />
	[% END %]

	[% WRAPPER settingGroup title="PLUGIN_CDPLAYER_USEDB_DESC" desc="PLUGIN_CDPLAYER_USEMUSICBRAINZ_DESC"%]
		<input type="radio" name="pref_usemusicbrainz" value="0" [% IF prefs.pref_usemusicbrainz == 0 %]checked[% END %]>[% 'PLUGIN_CDPLAYER_USECDDB' | getstring %]<br/>
		<input type="radio" name="pref_usemusicbrainz" value="1" [% IF prefs.pref_usemusicbrainz == 1 %]checked[% END %]>[% 'PLUGIN_CDPLAYER_USEMUSICBRAINZ' | getstring %]<br/>
		<input type="radio" name="pref_usemusicbrainz" value="2" [% IF prefs.pref_usemusicbrainz == 2 %]checked[% END %]>[% 'PLUGIN_CDPLAYER_USENODB' | getstring %]<br/>
	[% END %]

	[% WRAPPER setting title="PLUGIN_CDPLAYER_CDDB_INEXACT" desc="PLUGIN_CDPLAYER_CDDB_INEXACT_DESC" %]
	   <input type="checkbox" class="stdedit" name="pref_cddbinexact" id="cddbinexact" value="1" [% IF prefs.pref_cddbinexact == 1 %] checked [% END %]  />
	[% END %]

	[% IF underlyingos == 0 %]
		[% WRAPPER setting title="PLUGIN_CDPLAYER_WEB_DEVICE" desc="PLUGIN_CDPLAYER_WEB_DEVICE_DESC" %]
		    <input type="text" class="stdedit" name="pref_device" id="device" value="[% prefs.pref_device %]" size="20" />
		[% END %]
	[% END %]

	[% IF underlyingos == 1 %]
		[% WRAPPER setting title="PLUGIN_CDPLAYER_WEB_DEVICE_WIN" desc="PLUGIN_CDPLAYER_WEB_DEVICE_DESC_WIN" %]
			<select class="stdedit" name="pref_cddevice" id="cddevice">
			[% FOREACH option = cddevicelist %]
				<option [% IF prefs.pref_cddevice == option.key %]selected [% END %]value="[% option.key %]">[% option.value %]</option>
			[%- END -%]
			</select>
		[% END %]
	[% END %]

	[% IF underlyingos == 2 %]
		[% WRAPPER setting title="PLUGIN_CDPLAYER_WEB_DEVICE_OSX" desc="PLUGIN_CDPLAYER_WEB_DEVICE_DESC_OSX" %]
			<select class="stdedit" name="pref_cddevice" id="cddevice">
			[% FOREACH option = cddevicelist %]
				<option [% IF prefs.pref_cddevice == option.key %]selected [% END %]value="[% option.key %]">[% option.value %]</option>
			[%- END -%]
			</select>
		[% END %]
	[% END %]


	[% WRAPPER settingGroup title="PLUGIN_CDPLAYER_ACCESSKEYID" desc="PLUGIN_CDPLAYER_ACCESSKEYID_DESC" %]
		<input type="text" class="stdedit" name="pref_accesskeyid" id="accesskeyid" value="[% prefs.pref_accesskeyid %]" size="30" />
	[% END %]

	[% WRAPPER settingGroup title="PLUGIN_CDPLAYER_SECRETKEY" desc="PLUGIN_CDPLAYER_SECRETKEY_DESC" %]
		<input type="text" class="stdedit" name="pref_secretkey" id="secretkey" value="[% prefs.pref_secretkey %]" size="50" />
	[% END %]



	[% WRAPPER settingGroup title="PLUGIN_CDPLAYER_AMAZONLOCALE" desc="PLUGIN_CDPLAYER_AMAZONLOCALE_DESC"%]
		<input type="radio" name="pref_amazonlocale" value="0" [% IF prefs.pref_amazonlocale == 0 %]checked[% END %]>amazon.com<br/>
		<input type="radio" name="pref_amazonlocale" value="1" [% IF prefs.pref_amazonlocale == 1 %]checked[% END %]>amazon.co.uk<br/>
		<input type="radio" name="pref_amazonlocale" value="2" [% IF prefs.pref_amazonlocale == 2 %]checked[% END %]>amazon.de<br/>
		<input type="radio" name="pref_amazonlocale" value="3" [% IF prefs.pref_amazonlocale == 3 %]checked[% END %]>amazon.fr<br/>
		<input type="radio" name="pref_amazonlocale" value="4" [% IF prefs.pref_amazonlocale == 4 %]checked[% END %]>amazon.ca<br/>
	[% END %]


  [% END %]
[% PROCESS settings/footer.html %]

